-- GENERATED SPELL FOR [Magnataur Patriarch] --


function spell0_26295(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26295', 1500, 1)
end

function Sorts_26295(pUnit, Event)
local choix_sorts_26295 = math.random(0, 0)
if choix_sorts_26295 == 0 then
pUnit:RegisterEvent('spell0_26295', 1, 1)
end
end

function mob26295_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26295', math.random(1500, 3000), 1)
end

function mob26295_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26295_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26295_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26295, 1, 'mob26295_Action')
RegisterUnitEvent(26295, 2, 'mob26295_Leave')
RegisterUnitEvent(26295, 3, 'mob26295_Kill')
RegisterUnitEvent(26295, 4, 'mob26295_Die')
